refactor(session): modular system prompts and runner wiring#254
Open
xiami762 wants to merge 5 commits into
Open
refactor(session): modular system prompts and runner wiring#254xiami762 wants to merge 5 commits into
xiami762 wants to merge 5 commits into
Conversation
- Extend prompt composition (provider blocks, guidance, caching) and consolidate defaults; trim redundant static template bodies. - Update prompt_strings, Rex/Hephaestus builders, prompt_utils, and memory bootstrap for the new prompt pipeline. - Adjust session runner for Anthropic-style system blocks and related message handling. - Refresh session/agent/memory/integration tests; add Anthropic system blocks unit coverage. Co-authored-by: Cursor <cursoragent@cursor.com>
…sion-prompt-runner-system-blocks Co-authored-by: Cursor <cursoragent@cursor.com> # Conflicts: # flocks/session/runner.py
- Relocate flocks_mcp from ~/.flocks plugin path to flocks/tool/system. - Rex prompt_builder and agent.yaml/toolset updates; agent_factory hooks. - Session prompt/runner and prompt_strings tweaks; registry and skill wiring. - Refresh AGENTS.md; extend tests for factory, runner, toolset, builtins. Co-authored-by: Cursor <cursoragent@cursor.com>
- Move agent_identity and tool_catalog layers for clearer guidance order. - Exclude lsp from bulk native=True classification in ToolRegistry. - Minor lsp_tool tweak; extend runner and builtin management tests. Co-authored-by: Cursor <cursoragent@cursor.com>
- Remove redundant prompt.py / prompt_strings content where duplicated. - Refine bash tool description (dedicated-tool bullets and usage notes). - Align prompt_tokens, runner_step, and bash registry tests. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
prompt.py: composed provider/system blocks, guidance hooks, caching; consolidate defaults and slim static templates underflocks/session/prompt/.prompt_strings, Rex/Hephaestus prompt builders,prompt_utils, and memory bootstrap to the new pipeline.session/runner.pyfor provider system blocks and related message handling.tests/provider/test_anthropic_system_blocks.py.